import Layout from '@/layout/index.vue';
import type { AppRoute } from '@/types/route';

const authorRouter: AppRoute[] = [
  {
    path: '/author',
    component: Layout,
    redirect: '/author/index',
    name: 'author',
    meta: {
      title: '作者',
      icon: 'chat-square',
      roles: ['USER', 'GUEST']
      // watermark: true
    },
    children: [
      {
        path: '/author/index',
        component: () => import('@/views/author/index.vue'),
        name: 'authorShow',
        meta: {
          title: '作者',
          icon: 'chat-square',
          roles: ['USER', 'GUEST']
        },
        hidden: true
      },
      {
        path: ':authorId',
        component: () => import('@/views/author/index.vue'),
        name: 'authorPage',
        meta: {
          title: '作者',
          icon: 'chat-square',
          roles: ['USER', 'GUEST']
        },
        hidden: true
      }
    ],
    hidden: true
  }
];

export default authorRouter;
